package com.lyh.notes.model.vo.category;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CategoryVO {
    private Integer categoryId;
    private String name;
    private Integer parentCategoryId;
    private List<ChildrenCategoryVO> children;

    @Data
    public static class ChildrenCategoryVO {
        private Integer categoryId;
        private String name;
        private Integer parentCategoryId;
    }

}
